package com.by.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.course.entity.bo.BaseLessonReview;
import com.by.course.entity.vo.lessonreview.req.GetBaseLessonReviewVO;

import java.util.List;

public interface BaseLessonReviewMapper extends BaseMapper<BaseLessonReview>  {

    int insertSelective(BaseLessonReview record);

    int updateByPrimaryKeySelective(BaseLessonReview record);

    Integer countQueryLessonReview(GetBaseLessonReviewVO vo);

    List<BaseLessonReview> queryLessonReview(GetBaseLessonReviewVO vo);

    List<BaseLessonReview> selectReviewByAppointmentIdList(List<Long> baseAppointmentIdList);

    List<BaseLessonReview> selectByUserId(Long userId);

    List<BaseLessonReview> selectByStudentIdList(List<Long> studentIdList);

    List<BaseLessonReview> selectByTeacherId(Long teacherId);
}